package com.translate.web.param;
import java.math.BigDecimal;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IAcademicResourcesAddParam;
public class AcademicResourcesAddParam implements IAcademicResourcesAddParam {// 封面图片
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String cover;
// 文章标题
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String newsTitle;
// 文章说明
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String newsDiscription;
// 0, 不启用; 1,启用
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
private Byte enabled;
// 已删除 0 否 1 是
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
private Byte del;
// 文章内容
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String content;



public String getCover() {
        return cover;
    }
public void setCover(String cover) {
        this.cover = cover == null ? null : cover.trim();
    }
public String getNewsTitle() {
        return newsTitle;
    }
public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle == null ? null : newsTitle.trim();
    }
public String getNewsDiscription() {
        return newsDiscription;
    }
public void setNewsDiscription(String newsDiscription) {
        this.newsDiscription = newsDiscription == null ? null : newsDiscription.trim();
    }
public Byte getEnabled() {
        return enabled;
    }
public void setEnabled(Byte enabled) {
        this.enabled = enabled;
    }
public Byte getDel() {
        return del;
    }
public void setDel(Byte del) {
        this.del = del;
    }




public String getContent() {
        return content;
    }
public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}